package com.cjh.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName commodity
 */
@TableName(value ="commodity")
@Data
public class Commodity implements Serializable {
    /**
     * 商品主键
     */
    @TableId(type = IdType.AUTO)
    private Integer commodity;

    /**
     * 外键，门店id
     */
    private Integer storeId;

    /**
     * 商品规格外键
     */
    private Integer specificationsId;

    /**
     * 图片
     */
    private String image;

    /**
     * 商品名称
     */
    private String commodityName;

    /**
     * 是否显示,1:是，0：否
     */
    private Integer isShow;

    /**
     * 排序，最大9999
     */
    private Integer sort;

    /**
     * 0:单规格 1：多规格
     */
    private Integer isMultiSpecification;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}